<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择性打印偶数</title>
</head>
<body>
    <script>
        var x=0,sum=0;
        while(x<=100){
            x+=2;    
            if(x==22||x==44||x==66||x==88)
            {
                continue;
            }
            document.write(x-2+'</br>');
            sum+=x;
        }alert(sum-2)
    </script>
</body>
</html>